import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
    { path: '/', name: 'home', component: () => import('@/views/home-view.vue') },
    //{ path: '/home', name: 'home', component: () => import('@/views/home-view.vue') },
    { path: '/about', name: 'about', component: () => import('@/views/about-view.vue') }
]
const router = createRouter({
    //history: createWebHistory(process.env.BASE_URL),//默认时
    history: createWebHashHistory(process.env.BASE_URL),//修改后
    routes
})

export default router
